package com.bm.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/21/16:55
 */
@Data
@TableName(value = "t_scrip")
public class Scrip {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private String text;
    private Date ctime;

    public Scrip(Integer uid, String text) {
        this.uid = uid;
        this.text = text;
        this.ctime = new Date();
    }
}
